package com.lab.labspring.req;


import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
public class AdminLoginReq implements Serializable {

    @NotBlank(message = "【手机号】不能为空")
    @Pattern(regexp = "^1\\d{10}$", message = "手机号码格式错误")
    private String phone;

    private String username;

    private String password;
    @NotBlank(message = "【短信验证码】不能为空")
    private String code;


}
